package com.sinosoft.tcmneim.service.impl;

import com.sinosoft.tcmneim.dao.TblMedicalIncomeDao;
import com.sinosoft.tcmneim.dataObject.TblMedicalIncome;
import com.sinosoft.tcmneim.service.TblMedicalIncomeService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class TblMedicalIncomeServiceImpl implements TblMedicalIncomeService {

    @Resource
    private TblMedicalIncomeDao tblMedicalIncomeDao;


    @Override
    public List<TblMedicalIncome> list() {
        return tblMedicalIncomeDao.list();
    }

    @Override
    public List<TblMedicalIncome> selectByItemCode(String itemCode) {
        return tblMedicalIncomeDao.selectByItemCode(itemCode);
    }

    @Override
    public int insert(TblMedicalIncome tblMedicalIncome) {
        return tblMedicalIncomeDao.insert(tblMedicalIncome);
    }

    @Override
    public int updated(TblMedicalIncome tblMedicalIncome) {
        return tblMedicalIncomeDao.updated(tblMedicalIncome);
    }

    @Override
    public int deleteByItemCode(String itemCode) {
        return tblMedicalIncomeDao.deleteByItemCode(itemCode);
    }
}
